package com.sunwayworld.basemodule.basedata.experimentinfo.resource.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.sunwayworld.basemodule.basedata.experimentinfo.resource.LimsExperimentInformationResource;
import com.sunwayworld.basemodule.basedata.experimentinfo.service.LimsExperimentInformationService;
import com.sunwayworld.framework.spring.annotation.GikamBean;
import com.sunwayworld.framework.log.annotation.Log;
import com.sunwayworld.framework.log.annotation.LogModule;
import com.sunwayworld.framework.log.annotation.LogType;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;

@LogModule("实验信息管理")
@RestController
@GikamBean
public class LimsExperimentInformationResourceImpl implements LimsExperimentInformationResource {

    @Autowired
    private LimsExperimentInformationService limsExperimentInformationService;

    @Override
    public LimsExperimentInformationService getService() {
        return limsExperimentInformationService;
    }

    @Log(value = "新增实验信息管理", type = LogType.INSERT)
    @Override
    @RequestMapping(method = RequestMethod.POST)
    public Long insert(RestJsonWrapperBean wrapper) {
        return getService().insert(wrapper);
    }

}
